using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DynamicExpresso;


namespace InterpreterDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            var text = "100 >0 && 100 >= 10";
            var textList = new List<string>();
            for (var i = 0; i < 5000; i++)
            {
                textList.Add(text);
            }
            var interpreter = new Interpreter();
            var stopwatch = new Stopwatch();
            stopwatch.Start();

            foreach (var valText in textList)
            {
                var result = interpreter.Eval<bool>(text);
            }
            stopwatch.Stop();
            Console.WriteLine(stopwatch.ElapsedMilliseconds);
        }
    }
}
